﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adm_merchantbaseinfo.aspx.vb" Inherits="georgia_globaltp.adm_merchantbaseinfo" %>
<%@ Register TagPrefix="left" TagName="members_left" Src="../../webControls/adm_members_left.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Georgia Global Trade Portal</title>
<link rel="stylesheet" type="text/css" href="../../assets/global.css" />
<link rel="shortcut icon" type="image/x-icon" href="../../assets/GeorgiaOrgFavicon.ico"/>
<link rel="icon" type="image/x-icon" href="../../assets/GeorgiaOrgFavicon.ico"/>
<script src="../../assets/js/dojoroot/dojo/dojo.js" type="text/javascript" ></script>
<script src="../../assets/js/countries.js" type="text/javascript"></script>
<script type="text/javascript">
    function init() {
        var cc = dojo.byId('country');
        for (var i in countries) {
            if (dojo.byId('country_code').innerHTML.trim() == countries[i].id.trim())
                cc.innerHTML += '<option value="' + countries[i].id + '" selected>' + countries[i].en + '</option>';
            else
                cc.innerHTML += '<option value="' + countries[i].id + '">' + countries[i].en + '</option>';
        }
        if (dojo.byId('country_code').innerHTML.trim() != "") renderState(dojo.byId('state_code').innerHTML.trim());
    }
    function renderState(csid) {
        var ss = dojo.byId('state');
        ss.innerHTML = '<option> --state-- </option>';
        dojo.byId('city').innerHTML = '<option> --city--</option>';
        var cid = dojo.byId('country').options[dojo.byId('country').selectedIndex].value;
        for (var i in countries) {
            if (cid.trim() == countries[i].id.trim()) {
                for (var j in countries[i].province) {
                    if (csid && csid == countries[i].province[j].id.trim())
                        ss.innerHTML += '<option value="' + countries[i].province[j].id + '" selected>' + countries[i].province[j].en + '</option>';
                    else
                        ss.innerHTML += '<option value="' + countries[i].province[j].id + '">' + countries[i].province[j].en + '</option>';
                }
            }
        }
        if (csid && csid != "") renderCity(dojo.byId('city_code').innerHTML.trim());
    }
    function renderCity(ccid) {
        var ss = dojo.byId('city');
        ss.innerHTML = '<option> --city--</option>';
        var cid = dojo.byId('country').options[dojo.byId('country').selectedIndex].value;
        var sid = dojo.byId('state').options[dojo.byId('state').selectedIndex].value;
        for (var i in countries) {
            if (cid.trim() == countries[i].id.trim()) {
                for (var j in countries[i].province) {
                    if (sid.trim() == countries[i].province[j].id.trim()) {
                        for (var k in countries[i].province[j].city) {
                            if (ccid && ccid == countries[i].province[j].city[k].id)
                                ss.innerHTML += '<option value="' + countries[i].province[j].city[k].id + '" selected>' + countries[i].province[j].city[k].en + '</option>';
                            else
                                ss.innerHTML += '<option value="' + countries[i].province[j].city[k].id + '">' + countries[i].province[j].city[k].en + '</option>';
                        }
                    }
                }
            }
        }
    }
</script>
    <style type="text/css">
        #productSell
        {
            width: 238px;
        }
        #productBuy
        {
            width: 237px;
        }
    </style>
</head>
<body onload="init()">
	<div>
    	<div id="main">
        	
        	<div id="content">
                <div id="content2">
    				<left:members_left id="membersLeft" runat="server"></left:members_left>
                    <div class="memberContent">
                    	<div style="padding-top:25px;">
                           <div class="merchantBaseInfoTabWrap">
                                <ul id="merchantBaseInfoTabBox">
                                    <li class="merchantCurrent">
                                        <a id="merchantBaseInfo">basic information</a>
                                    </li>
                                    <li>
                                        <a id="merchantDetailInfo" href="adm-merchantdetailinfo.aspx?uid=<%=Request("uid") %>">more information</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="merchantContentBox">
                            <form id="form1" runat="server">
                                <table width="90%">
                                    <tr>
                                        <td width="15%" align="right">company name:</td>
                                        <td width="75%"><asp:TextBox size="40" id="c_companyName" runat="server"/></td>
                                        <td width="10%"><asp:Label runat="server" ID="msg"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td>please fill in truthfully otherwise your company will be locked automaticlly by our system</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">company address:</td>
                                        <td>
                                            <select id="country" onchange="renderState()" name="country" >
                                                <option> ---country---</option>
                                            </select>
                                            <select id="state" onchange="renderCity()" name="state">
                                                <option> --state-- </option>
                                            </select>
                                            <select id="city" name="city">
                                                <option> --city--</option>
                                            </select>
                                            <span style="display:none;">
                                            <asp:Label runat="server" ID="country_code"></asp:Label>
                                            <asp:Label runat="server" ID="state_code"></asp:Label>
                                            <asp:Label runat="server" ID="city_code"></asp:Label>
                                            </span>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td><asp:TextBox id="c_address" size="40" runat="server"/></td>
                                        <td></td>
                                    </tr>
                                     <tr>
                                        <td align="right">operation model:</td>
                                        <td>
                                            <input name="company_mode" type="radio" id="sctype" runat="server" value="1"/>production
                                            <input name="company_mode" type="radio" id="mytype" runat="server" value="2"/>trade
                                            <input name="company_mode" type="radio" id="fwtype" runat="server" value="3"/>service
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">business industry:</td>
                                        <td>
                                            
                                            <asp:dropdownlist  id="c_productField" Runat="server" Width ="200px" >
													<asp:ListItem Value=""> ----------select---------- </asp:ListItem>												
												</asp:dropdownlist>
                                            
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">main business:</td>
                                        <td>
                                            <input type="radio" id="xsaspect" runat="server" name="company_major" value="1"/>sell
                                            <input type="radio" id="cgaspect" runat="server" name="company_major" value="2"/>purchase
                                            <input type="radio" id="bothaspect" runat="server" name="company_major" value="3"/>both
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">main products:</td>
                                        <td>
                                            <asp:TextBox id="c_productSell" runat="server" value="" Width="230px"/>sell
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td>
                                            <asp:TextBox id="c_productBuy" runat="server" value="" Width="230px"/>purchase
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">contact person:</td>
                                        <td>
                                            <asp:TextBox id="c_linkMan" runat="server" value="" size="20"/>
                                            <input type="radio" id="genderMan" runat="server" name="gender" value="0" checked="true"/>male
                                            <input type="radio" id="genderWoman" runat="server" name="gender" value="1"/>female
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">telephone:</td>
                                        <td>
                                            <asp:TextBox id="c_phone" runat="server" value="" size="40"/>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right">mobile:</td>
                                        <td>
                                            <asp:TextBox id="c_cellphone" runat="server" value="" size="40"/>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td>
                                            <input type="checkbox"  value="1" checked="true" />I agree to accept relavent industrial information
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td>
                                            <input id="submit" type="submit" name="submit" value="submit and continue the detailed information"></input>&nbsp;
                                        </td>
                                        <td></td>
                                    </tr>
                              </table>
                              </form>
                          </div>
                       </div>
                  </div>
				</div>
            </div>
        </div> 
    </div>
    
</body>
</html>
